package com.kh.pajx.sop.util.web;

import java.util.ArrayList;
import java.util.List;

/**
 * web常量
 * @author:	azzcsimp
 * @Createdate:	2014年6月23日 下午5:22:32
 */
public abstract class Constants {

	/**
	 * 路径分隔符
	 */
	public static final String SPT = "/";

	/**
	 * 索引页
	 */
	public static final String INDEX = "index";

	/**
	 * 默认模板
	 */
	public static final String DEFAULT = "default";

	/**
	 * UTF-8编码
	 */
	public static final String UTF8 = "UTF-8";

	/**
	 * 提示信息
	 */
	public static final String MESSAGE = "message";

	/**
	 * cookie中的JSESSIONID名称
	 */
	public static final String JSESSION_COOKIE = "JSESSIONID";

	/**
	 * url中的jsessionid名称
	 */
	public static final String JSESSION_URL = "jsessionid";

	/**
	 * HTTP POST请求
	 */
	public static final String POST = "POST";

	/**
	 * HTTP GET请求
	 */
	public static final String GET = "GET";
	
	/******************************JDBC相关BEGIN***************************************/
    /**数据库类型**/
    public static final String JDBC_DATASOURCE_TYPE_KEY = "type";
    
    public static final String JDBC_DATASOURCE_DRIVERCLASSNAME_KEY = "driverClass";
    
    public static final String JDBC_DATASOURCE_URL_KEY = "jdbcUrl";
    
    public static final String JDBC_DATASOURCE_USERNAME_KEY = "username";
    
    public static final String JDBC_DATASOURCE_PASSWORD_KEY = "password";
    
    public static final String JDBC_DATASOURCE_TYPE_KEY2 = "type2";
    
    public static final String JDBC_DATASOURCE_DRIVERCLASSNAME_KEY2 = "driverClass2";
    
    public static final String JDBC_DATASOURCE_URL_KEY2 = "jdbcUrl2";
    
    public static final String JDBC_DATASOURCE_USERNAME_KEY2 = "username2";
    
    public static final String JDBC_DATASOURCE_PASSWORD_KEY2 = "password2";
    
    /******************************JDBC相关END***************************************/
    
 public static List<String> codecList = new ArrayList<String>();
    
    static{
    	codecList.add("HTMLEntityCodec");  // HTMLEntity
    	codecList.add("XMLEntityCodec");   // XMLEntity
    	//codecList.add("PercentCodec");     // precent
    	codecList.add("JavaScriptCodec");  // javascript
    	codecList.add("VBScriptCodec");    // VBScript
    	codecList.add("CSSCodec");         // CSS
    	codecList.add("WindowsCodec");     // windows
    	codecList.add("OracleCodec");      // oracle
    }
}
